<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
</html>
<script>
//247 parseInt(f/100)  
//parseInt(f%100/10)
//parseInt(f%10)
function xc(d)
{
	var b = 1;
	for (var c=1;c<=d ;c++ )
	{
		b *= c;
	};
	return b
};

for (var f=100;f<=999 ;f++ )
{
	if (xc(parseInt(f/100)) + xc(parseInt(f%100/10)) + xc(parseInt(f%10)) == f)
	{
		console.log(f);
	};
};
</script>
